<div name="content">
  <pre>package {{ packages_v }};</pre>

  <!--新的for控制-->
  @for (impCls of imports; track $index) {
    <pre>import {{ impCls }};</pre>
  }
  <pre>/ **</pre>
  <pre> * {{ tableInfo.comment }}</pre>
  <pre> * &#64;author : liuhailong</pre>
  <pre> * &#64;date : {{ currentTime }}</pre>
  <pre> */</pre>

  <pre>&#64;Entity</pre>
  <pre>&#64;Table(name = "{{ tableInfo.tableName }}")</pre>
  <pre>public interface {{ changeCase.pascalCase(tableInfo.tableName) }} &#123;</pre>
  <div>
    @for (column of tableInfo.columns; track $index) {
      <pre>    /**</pre>
      <pre>    * {{ column.comment }}</pre>
      <pre>    */</pre>

      @if (column.isNullable && DB_JavaType.get(column.type)?.javaTypeNull == DB_JavaType.get(column.type)?.javaTypeNotNull) {
        <pre>    &#64;Nullable</pre>
      }
      @if (column.isPk) {
        <pre>    &#64;Id</pre>
      }
      <pre>    &#64;Column(name = "{{ column.name }}", sqlType = "{{ DB_JavaType.get(column.type)?.dbType }}")</pre>
      <pre>    {{ getColumndatatype(column) }}  {{ changeCase.camelCase(column.name) }}();</pre>
    }

  </div>
  <pre>&#125;</pre>
</div>
<br>
<button (click)="copyContent($event)"> 复制</button>
<button (click)="copyContent($event)"> 下载</button>
